[FORMAT "WCOFF"]
[INSTRSET "i486p"]
[BITS 32]
[FILE "api00.nas"]

		GLOBAL	_api_putchar
		
		GLOBAL	_api_putchar2win

[SECTION .text]


_api_putchar:	; void api_putchar(int c);
		MOV		EDX,1
		MOV		AL,[ESP+4]		; c
		INT		0x40
		RET

_api_putchar2win:  ;void _api_putchar2win(int cmd_win , int c);

	MOV EDX,6
	PUSH EBX
	MOV EBX,[ESP+8]
	MOV AL,[ESP+12] ;c
	INT 0X40
	POP EBX
	RET